﻿using System;
using System.Collections.Generic;

class Dictionary
{
    static void Main()
    {
        Dictionary<string, string> dictionary = new Dictionary<string, string>();
        dictionary.Add(".NET", "platform for applications from Microsoft");
        dictionary.Add("CLR", "managed execution environment for .NET");
        dictionary.Add("namespace", "hierarchical organization of classes");
        Console.WriteLine("The dictionary is:");
        foreach (var str in dictionary)
        {
            Console.WriteLine(str);
        }
        Console.WriteLine();
        Console.WriteLine("Enter what you are looking for:");
        string searchedWord = Console.ReadLine();
        if (dictionary.ContainsKey(searchedWord))
        {
            string value = dictionary[searchedWord];
            Console.WriteLine(value);
        }
        else
        {
            Console.WriteLine("Sorry, the term you are looking for is not in the dictionary!");
        }

    }
}

